// import Todo from '../views/todo/todo.vue'
// import Login from '../views/login/login.vue'
export default [
  {
    path: '/',
    redirect: '/app'
  }, {
    path: '/app/:id',
    // component: Todo,
    component: () => import('../views/todo/todo.vue'),
    props: true,
    // components: {
    //   default: Todo,
    //   a: Login
    // },
    name: 'app',
    beforeEnter (to, from, next) {
      console.log('routes before Enter')
      next()
    }
  }, {
    path: '/Login',
    // components: {
    //   default: Login,
    //   a: Todo
    // }
    // component: Login
    component: () => import('../views/login/login.vue')
  }
]
